package com.flag.liutao.modules.student.param;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("添加和修改班级信息的param")
public class ClassParam implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 班级名称
     */
    @ApiModelProperty("班级名称")
    @NotBlank(message = "班级名称不能为空")
    private String className;

    /**
     * 所属专业ID
     */
    @ApiModelProperty("所属专业ID")
    @NotNull(message = "请选择专业")
    private Long majorId;

    /**
     * 所属年级ID
     */
    @ApiModelProperty("所属年级ID")
    @NotNull(message = "请选择年级")
    private Long gradeId;


}
